{extend name='base'}
{block name='nav2'}
    <a><cite>人才招聘</cite></a>
{/block}
{block name='nav3'}
    <a><cite>招聘管理</cite></a>
{/block}
{block name='con1'}
    <div class="x-body">
        <xblock>
            <a href="{:url('jobs_add')}">
                <cite class="layui-btn">
                    <i class="layui-icon">&#xe608;</i>添加
                </cite>
            </a>
        </xblock>
        <table class="layui-table">
            <thead>
                <tr>
                    <th>序号</th>
                    <th>职位</th>
                    <th>职位详情</th>
                    <th>发布日期</th>
                    <th>操作</th>
                </tr>
            </thead>
            <tbody id="x-img">
            {volist name='arr' id='list' key='i'}
                <tr>
                    <td>
                        {$i}
                    </td>
                    <td>
                        {$list.post}
                    </td>
                    <td>
                        {:mb_substr($list.details,0,20,'utf-8')}...
                    </td>
                    <td>
                        {:date('Y/m/d',$list.date)}
                    </td>
                    <td class="td-manage">
                        <a title="修改" href="{:url('jobs_edit',['id'=>$list.id])}">
                            <i class="layui-icon">&#xe642;</i>
                        </a>
                        <a title="删除" onclick="return del();" href="{:url('jobs_del',['id'=>$list.id])}">
                            <i class="layui-icon">&#xe640;</i>
                        </a>
                    </td>
                </tr>
            {/volist}
            </tbody>
        </table>
        {$arr}
        <div id="page"></div>
    </div>
{/block}